Occurs after the user inserts a new record into the DataGrid control.
Syntax
Private Sub object_AfterInsert (index As Integer)
The AfterInsert event syntax has these parts:
Part | Description |
object | An object expression that evaluates to an object in the Applies To list. |
index | An integer that identifies a control if it is in a control array. |
Remarks
When the user selects the new record (at the bottom of the control) and enters a character in one of the cells, the BeforeInsert event is triggered, followed by the BeforeUpdate, AfterUpdate and AfterInsert events.
When the AfterInsert event is triggered, the record has already been added to the database. The Bookmark property can be used to access the new record.
The AfterInsert event can't be canceled.
The AfterInsert event procedure can be used to update other tables or to perform post-update cleanup of other controls.